﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace InfiniTec
{
	public static class StringExtension
	{
		public static bool IsNullOrEmpty(this string value)
		{
			return string.IsNullOrEmpty(value);
		}

		public static bool IsNotNullOrEmpty(this string value)
		{
			return !string.IsNullOrEmpty(value);
		}

        public static string Join(this IEnumerable<string> items, string delimeter)
        {
            if (items == null) throw new ArgumentNullException("items");
            if (delimeter == null) throw new ArgumentNullException("delimeter");

            return string.Join(delimeter, items.ToArray());
        }
	}
}
